
/**
 * Copyright 2009 cestum.org
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
 
package org.waveprotocol.wave.model.document.operation.impl {
import org.waveprotocol.wave.model.document.operation.AnnotationBoundaryMap;
import org.waveprotocol.wave.model.document.operation.Attributes;
import org.waveprotocol.wave.model.document.operation.AttributesUpdate;
import org.waveprotocol.wave.model.document.operation.DocInitializationCursor;
import org.waveprotocol.wave.model.document.operation.DocumentOperationCursor;

public class InitializationCursorAdapter implements DocumentOperationCursor {
	
	private var inner:DocInitializationCursor;
	
	public function InitializationCursorAdapter(inner:DocInitializationCursor) {
		this.inner = inner;
	}
	
	
	public function annotationBoundary(map:AnnotationBoundaryMap):void {
		inner.annotationBoundary(map);
	}
	
	
	public function characters(chars:String):void {
		inner.characters(chars);
	}
	
	
	public function elementEnd():void {
		inner.elementEnd();
	}
	
	
	public function elementStart(type:String, attrs:Attributes):void {
		inner.elementStart(type, attrs);
	}
	
	
	public function deleteCharacters(chars:String):void {
		throw new Error("Unsupported Error: deleteCharacters");
	}
	
	
	public function deleteElementEnd():void {
		throw new Error("Unsupported Error: deleteElementEnd");
	}
	
	
	public function deleteElementStart(type:String, attrs:Attributes):void {
		throw new Error("Unsupported Error: deleteElementStart");
	}
	
	
	public function replaceAttributes(oldAttrs:Attributes, newAttrs:Attributes):void {
		throw new Error("Unsupported Error: replaceAttributes");
	}
	
	
	public function retain(itemCount:int):void {
		throw new Error("Unsupported Error: retain");
	}
	
	
	public function updateAttributes(attrUpdate:AttributesUpdate):void {
		throw new Error("Unsupported Error: updateAttributes");
	}
	
	
}
}